<?php

use think\Db;

$res = Db::name('dict')->field(['abbreviation','content','type'])->where('lang','pt')->select();

$returnData = array();
$resCount = count($res);
for ($i=0; $i < $resCount; $i++) { 
	// $returnData[$res[$i]['abbreviation']] = $res[$i]['content'];
	if($res[$i]['type'] == '1'){
		$returnData[$res[$i]['abbreviation'].'_btn'] = $res[$i]['content'];
	}else{
		$returnData[$res[$i]['abbreviation']] = $res[$i]['content'];
	}
}
// dump($returnData);die;
return $returnData;
